package xyz.chenyongpeng.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import xyz.chenyongpeng.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台菜单
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="ZsBackstageMenu对象", description="后台菜单")
public class ZsBackstageMenu extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "后台菜单主键")
    @TableId(value = "bm_id", type = IdType.AUTO)
    private Integer bmId;

    @ApiModelProperty(value = "菜单标题")
    private String bmTitle;

    @ApiModelProperty(value = "控制器名称")
    private String cName;

    @ApiModelProperty(value = "方法名称")
    private String aName;

    @ApiModelProperty(value = "采购的icon")
    private String icon;

    @ApiModelProperty(value = "菜单排序")
    private Integer sort;

    @ApiModelProperty(value = "上级菜单ID 0为父级别")
    private Integer pBmId;

    @ApiModelProperty(value = "是否 顶级连接 而不是分类菜单")
    private Boolean isUrl;


}
